home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / man / man-part1 / cat1 / evstr.1 < prev    next >
Text File  |  1999-09-16  |  878b  |  67 lines

  1.  
  2.  
  3.  
  4. evstr(1)                       Scilab Function                       evstr(1)
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. NAME
  12.   evstr - evaluation of expressions
  13.  
  14. CALLING SEQUENCE
  15.   [H]=evstr(Z)
  16.  
  17. PARAMETERS
  18.  
  19.   Z    : matrix of character strings or list
  20.  
  21.   H    : matrix
  22.  
  23. DESCRIPTION
  24.   returns the evaluation of the matrix of character strings Z.
  25.  
  26. EXAMPLES
  27.   a=1; b=2; Z=['a','b'] ; evstr(Z)
  28.   returns the matrix [1,2]
  29.  
  30.   This function can also be used for a list.
  31.    a=1; b=2; Z =list(['%(1)','%(1)-%(2)'],['a+1','b+1']);
  32.   evstr(Z)
  33.   returns [2,-1]
  34.  
  35.   Here, Z is a list with two elements; the second element of Z is a vector V
  36.   of character strings; evstr returns the evaluation of the first element of
  37.   Z. In this first element %(i) stands for the ith element of V consequently
  38.   evstr returns [a+1,(a+1)-(b+1)]=[2,-1].
  39.  
  40.   evstr('a=1') is not valid (use execstr ).
  41.  
  42. SEE ALSO
  43.   execstr
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.